﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Sims3Package.Wrapper
{
    /// <summary>
    /// Base class for wrapper
    /// </summary>
    public abstract class Wrapper : Resource
    {
        /// <summary>
        /// Used in refection for get types
        /// </summary>
        public static List<UInt32> ResourceTypes { get { return mResourceTypes; } }
        /// <summary>
        /// Standard constructor
        /// </summary>
        /// <param name="s">Stream that contained in entry, null to represent new resource</param>
        protected Wrapper(Stream s) : base(s) { }
        /// <summary>
        /// Used in text preview
        /// </summary>
        public virtual string Value { get { return mValue; } }

        protected string mValue;
        protected static List<UInt32> mResourceTypes;
        new protected Stream stream = null;
        public abstract override Stream UnParse();
    }
}
